package com.woniuxy.store.client;

import com.woniuxy.store.client.param.foodParam.*;
import common.WoniuPage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.*;
import result.Result;

@FeignClient(contextId = "foodClient",name = "store",path="/store/food")
public interface FoodClient {

    @PostMapping({"/insertFoodSpu"})
    Result insertFoodSpu(@RequestBody InsertFoodSpuParams var1);

    @PutMapping({"/updateFoodSpuStateByIds"})
    Result updateFoodSpuStateByIds(@RequestBody UpdateFoodSpuStateParams var1);

    @PutMapping({"/updateFoodSpuById"})
    Result updateFoodSpuById(@RequestBody UpdateFoodSpuParams var1);

    @PutMapping({"/updateFoodSpuSalesCountById"})
    Result updateFoodSpuSalesCountById(@RequestBody UpdateFoodSpuSalesCountParams param);

    @DeleteMapping({"/deleteFoodSpuByIds"})
    Result deleteFoodSpuByIds( @RequestParam("ids") Integer[] ids);

    @GetMapping({"/searchFoodSpuByCondition"})
    Result searchFoodSpuByCondition(@SpringQueryMap SearchFoodSpuByConditionParams param);

    @PostMapping("/insertFoodTypeSpu")
    Result insertFoodTypeSpu(@RequestBody InsertFoodTypeSpuParams param);
}
